﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfDjackSuggestion.aspx.cs" Inherits="msBsc.WebUi.wMall.Seller.wfDjackSuggestion" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>网站建议</title>
    <link href="/themes/wStyle1/css/sLayout.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sHead.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sFoot.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/Seller/sDjackInfo.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/usermenu.css" rel="stylesheet" />
    <style>
        .content-wrap {
            padding-top: 20px;
        }

        .show-row {
            width: 100%;
            margin-bottom: 10px;
        }

        .text-title {
            font-size: 16px;
            color: #808080;
            text-align: right;
            margin-right: 10px;
            font-weight: normal;
            width: 80px;
            display: table-cell;
            float: left;
        }

        .cust-input {
            width: 240px;
            height: 25px;
            line-height: 25px;
            display: table-cell;
        }

        .cust-textarea {
            width: 420px;
            height: 120px;
        }

        .cust-btn-submit, .cust-btn-reset {
            width: 100px;
            height: 30px;
            line-height: 30px;
            background-color: #3398dc;
            border: 0;
            margin-left: 90px;
            color: #fff;
            font-family: 微软雅黑;
            cursor: pointer;
        }

        .cust-btn-reset {
            margin-left: 5px;
            background-color: #7abd54;
        }

            .cust-btn-submit:hover, .cust-btn-reset:hover {
                opacity: 0.8;
            }
    </style>
</head>
<body>
    <div class="wf_all">
        <div id="divLoginInfo">
            <%=msBsc.WebUi.Code.QtHtmlGet.GetHeaderLoginInfo() %>
        </div>
        <div class="main-container">
            <div class="sidebar-scroll">
                <%=msBsc.WebUi.Code.QtHtmlGet.GetDjackMenuHtml() %>
            </div>
            <div class="main-Info">
                <div class="tnavigation">
                    <a href="#" class="nav">我的地接客</a>&gt;
			
                    <a href="#" class="nav">网站管理</a>&gt;
			
                    <a href="#" class="nav-on">网站建议</a>
                </div>
                <div class="content-wrap">
                    <div class="show-row">
                        <span class="text-title">邮 箱:</span><input type="text" id="txtEmail" class="cust-input" value="" placeholder="请输入您的联系邮箱" />
                    </div>
                    <div class="show-row">
                        <span class="text-title">电 话:</span><input type="text" id="txtPhone" class="cust-input" value="" placeholder="请输入您的联系电话" />
                    </div>
                    <div class="show-row">
                        <span class="text-title">页面名称:</span><input type="text" id="txtPageName" class="cust-input" value="" placeholder="请输入建议页面名称" />
                    </div>
                    <div class="show-row">
                        <span class="text-title">页面链接:</span><input type="text" id="txtPageLink" class="cust-input" value="" placeholder="请输入建议页面链接" />
                    </div>
                    <div class="show-row">
                        <span class="text-title">宝贵建议:</span><textarea id="txtaSuggst" class="cust-textarea" placeholder="请输入您的宝贵建议,1000字以内"></textarea>
                    </div>
                    <div class="show-row">
                        <button class="cust-btn-submit">提交建议</button>
                        <button class="cust-btn-reset">重    置</button>
                    </div>
                </div>
            </div>
        </div>
        <!--start JS引用-->
        <script src="/jqPlugin/js/jquery-1.8.3.min.js"></script>
        <script src="/jqPlugin/js/jBase.js"></script>
        <script src="/jqPlugin/js/jBPage.js"></script>
        <script src="/jqPlugin/js/laytpl.js"></script>

        <script src="/jqPlugin/SelectSimu/js/SelectSimu.js"></script>
        <script src="/themes/wStyle1/js/comm/jsLayout.js"></script>
        <!--end JS引用-->
        <script type="text/javascript">
            $(function () {
                $(".cust-btn-reset").click(function () {
                    Reset();
                })

                $(".cust-btn-submit").click(function () {
                    SubmitSuggest();
                })
            })

            function Reset() {
                $("#txtPageName,#txtPageLink,#txtaSuggst").val("");
            }

            function SubmitSuggest() {
                var custEmail = $("#txtEmail").val();
                var custPhone = $("#txtPhone").val();
                var PageLink = $("#txtPageLink").val();
                var Suggst = $("#txtaSuggst").val();
                var PageName = $("#txtPageName").val();

                if (Suggst == null || Suggst == "" || Suggst == undefined) {
                    alert("建议不能为空，请填写建议内容");
                    return;
                }

                if (Suggst.length > 1000) {
                    alert("建议内容不能超过1000个字符");
                    return;
                }

                var opartParam = new jsonRow();
                opartParam.AddCell("ACTION", "submitSuggest");
                opartParam.AddCell("email", custEmail);
                opartParam.AddCell("phone", custPhone);
                opartParam.AddCell("pagelink", PageLink);
                opartParam.AddCell("content", Suggst);
                opartParam.AddCell("pagename", PageName);
                $(".cust-btn-submit").attr("disabled", "disabled").text("正在提交");
                ajaxComm(opartParam, null, function () {
                    $(".cust-btn-submit").text("提交建议").removeAttr("disabled");
                });
            }
        </script>
        <%=msBsc.WebUi.Code.QtHtmlGet.GetFloorHtml() %>
    </div>
</body>
</html>

